package com.alapedgt.mlPaH.Screens;

import com.alapedgt.mlPaH.R;

import android.os.Bundle;
import android.app.Activity;
import android.view.Menu;
import android.view.View;
import android.widget.Button;
import android.widget.TextView;

public class MainActivity extends Activity {
	
	private TextView testIclude;
	private TextView test;
	private Button testButton;
	
	private void init()
	{
		test = (TextView) findViewById(R.id.activity_main_textview_test);
		testButton = (Button) findViewById(R.id.activity_main_button_test);
		
//		View view = (View) findViewById(R.id.activity_main_include);
		testIclude = (TextView) findViewById(R.id.view_test_textview);   
	}

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.activity_main);
	
		init();
		
		testButton.setOnClickListener(new View.OnClickListener() {
			
			@Override
			public void onClick(View v) {	
				
							
				testIclude.setText("just pressed the button");
				testIclude.setTextColor(getResources().getColor(R.color.color_white));
								
			}
		});
	}

	@Override
	public boolean onCreateOptionsMenu(Menu menu) {
		// Inflate the menu; this adds items to the action bar if it is present.
		getMenuInflater().inflate(R.menu.main, menu);
		return true;
	}

	
	

}
